sched: fix deadlock when changing scheduling parameters
authorChong Li <chong.li@wustl.edu>
Tue, 5 Apr 2016 11:25:44 +0000 (13:25 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 5 Apr 2016 11:25:44 +0000 (13:25 +0200)
commit50b5df7dccd052b685084abe31a4b6be43c976ae
tree86f77315459c5982917d34b28b179eebdbc099e6
parente43b27a5999befcb6948622938253afc4345968b
sched: fix deadlock when changing scheduling parameters

Commit f7b87b0745b4 ("enable per-VCPU parameter for RTDS") introduced
a bug: it made it possible, in Credit and Credit2, when doing domain
or vcpu parameters' manipulation, to leave the hypervisor with a
spinlock held and interrupts disabled.

Fix it.

Signed-off-by: Chong Li <chong.li@wustl.edu>
Acked-by: Dario Faggioli <dario.faggioli@citrix.com>
xen/common/sched_credit.c
xen/common/sched_credit2.c